<script setup>
import A from './components/A.vue';
import B from './components/B.vue';
import C from './components/C.vue';
import D from './components/D.vue';
</script>



<template>
  <div class="common-layout">
    <el-container>
      <el-header class="header">
        <A />
      </el-header>
      <el-container>
        <el-aside width="100px" class="aside"><B /></el-aside>
        <el-container>
          <el-main class="main">
            <C />
          </el-main>
          <el-footer height="50%" class="footer">
            <D />
          </el-footer>
        </el-container>
      </el-container>
    </el-container>
  </div>
</template>


<style scoped>
* {
  padding: 0;
  margin: 0;
}

.common-layout {
  width: 400px;
  margin: 0 auto;
  margin-top: 100px;
}

.header,
.aside,
.main,
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header {
  background-color: #d6e8fc;
}

.aside {
  height: 150px;
  background-color: #00a4e3;
}

.main {
  background-color: #ffe5cb;
}

.footer {
  background-color: #e4d5e6;
}
</style>